HTMLify

style.css
Views: 32 | Author: cody
html {
    box-sizing: border-box;
    font-size: 62.5%;
}

html * {
    box-sizing: inherit;
}

body {
    background-color: #151515;
    display: grid;
    place-content: center;
    min-height: 100vh;
    position: relative;
}

.buttons {
    position: relative;
    z-index: 1;
}

.buttons--active .buttons__ctas {
    transform: translate(-50%, -50%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(1) {
    transform: translate(-110%, -150%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(2) {
    transform: translate(10%, -150%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(3) {
    transform: translate(65%, -50%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(4) {
    transform: translate(10%, 50%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(5) {
    transform: translate(-110%, 50%) rotate(0deg);
}

.buttons--active .buttons__cta:nth-child(6) {
    transform: translate(-165%, -50%) rotate(0deg);
}

.buttons__toggle {
    appearance: none;
    outline: none;
    border: none;
    background-color: #2ac62f;
    border-radius: 50%;
    color: #FFFFFF;
    cursor: pointer;
    width: 6rem;
    height: 6rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.buttons__toggle:focus,
.buttons__toggle--active {
    background-color: #e91e1e;
}

.buttons__toggle i {
    font-size: 3rem;
}

.buttons__ctas {
    left: 50%;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%) rotate(180deg);
    transform-origin: center;
    transition: transform 0.75s ease;
    z-index: 0;
}

.buttons__cta {
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    cursor: pointer;
    width: 7rem;
    height: 7rem;
    text-decoration: none;
    position: absolute;
    transform: translate(-50%, -50%) rotate(180deg);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.buttons__cta i {
    font-size: 4rem;
}

.buttons__cta:nth-child(1) {
    transition-delay: calc(1 * 0.075s);
    z-index: calc(6 - 1);
}

.buttons__cta:nth-child(2) {
    transition-delay: calc(2 * 0.075s);
    z-index: calc(6 - 2);
}

.buttons__cta:nth-child(3) {
    transition-delay: calc(3 * 0.075s);
    z-index: calc(6 - 3);
}

.buttons__cta:nth-child(4) {
    transition-delay: calc(4 * 0.075s);
    z-index: calc(6 - 4);
}

.buttons__cta:nth-child(5) {
    transition-delay: calc(5 * 0.075s);
    z-index: calc(6 - 5);
}

.buttons__cta:nth-child(6) {
    transition-delay: calc(6 * 0.075s);
    z-index: calc(6 - 6);
}

Comments